//
//  LSFlowLayout.m
//  KuaiYi
//
//  Created by 袁应荣 on 2016/11/14.
//  Copyright © 2016年 HeiMa. All rights reserved.
//

#import "LSFlowLayout.h"

@implementation LSFlowLayout

- (void)prepareLayout
{
    [super prepareLayout];
    
    CGFloat itemW = (self.collectionView.bounds.size.width -3 * 1) / 3;
    CGFloat itemH = (self.collectionView.bounds.size.height -3 * 1) / 2 ;
    
    self.itemSize = CGSizeMake(itemW, itemH);
    self.minimumLineSpacing = 1;
    self.minimumInteritemSpacing = 0;
    self.sectionInset = UIEdgeInsetsMake(1, 1, -1, -1);
}

@end
